home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / XML Writer 2.12 / XML writer.exe / file0016.bin < prev    next >
Encoding:
Extensible Markup Language  |  2003-04-14  |  2.5 KB  |  68 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--See PassportSchema.xml for details on how to use this XSD Schema for validation-->
  4.  
  5. <!--The 'schema' element indicates that the syntax used in the XML Schema,
  6.     prefixed with 'xsd:', comes from the "http://www.w3.org/2001/XMLSchema" namespace.-->
  7. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  8.  
  9.     <!--The 'passport_details' element contains child elements in the order listed.
  10.         See the end of file    for each child's definition.
  11.         Elements that contain other elements are of complex type.-->
  12.     <xsd:element name="passport_details">
  13.         <xsd:complexType>
  14.             <xsd:sequence>
  15.                 <xsd:element ref="birth_cert"/>
  16.                 <xsd:element ref="last_name"/>
  17.                 <xsd:element ref="first_name" minOccurs="1" maxOccurs="unbounded"/>
  18.                 <xsd:element ref="address"/>
  19.             </xsd:sequence>
  20.         </xsd:complexType>
  21.     </xsd:element>
  22.     
  23.     <xsd:element name="address">
  24.         <xsd:complexType>
  25.             <!--'xsd:sequence' indicates the child elements must appear in the order listed.-->
  26.             <xsd:sequence>
  27.                 <xsd:element ref="street"/>
  28.                 <!--'xsd:choice' indicates a choice between the elements listed.-->
  29.                 <xsd:choice>
  30.                     <xsd:element ref="city"/>
  31.                     <xsd:element ref="town"/>
  32.                 </xsd:choice>
  33.                 <xsd:choice>
  34.                     <xsd:element ref="state"/>
  35.                     <xsd:element ref="province"/>
  36.                 </xsd:choice>
  37.                 <xsd:choice>
  38.                     <xsd:element ref="ZIP"/>
  39.                     <xsd:element ref="postal_code"/>
  40.                 </xsd:choice>
  41.                 <xsd:element ref="country"/>
  42.                 <xsd:element ref="contact_no" minOccurs="0" maxOccurs="1"/>
  43.                 <xsd:element ref="email" minOccurs="0" maxOccurs="unbounded"/>
  44.             </xsd:sequence>
  45.         </xsd:complexType>
  46.     </xsd:element>
  47.     
  48.     <!--Define simple type elements.-->
  49.     <xsd:element name="street" type="xsd:string"/>
  50.     <xsd:element name="country" type="xsd:string"/>
  51.     <xsd:element name="town" type="xsd:string"/>
  52.     <xsd:element name="postal_code" type="xsd:string"/>
  53.     <xsd:element name="email" type="xsd:string"/>
  54.     <xsd:element name="contact_no" type="xsd:string"/>
  55.     <xsd:element name="province" type="xsd:string"/>
  56.     <xsd:element name="first_name" type="xsd:string"/>
  57.     <xsd:element name="birth_cert" type="xsd:string"/>
  58.     <xsd:element name="city" type="xsd:string"/>
  59.     <xsd:element name="ZIP" type="xsd:string"/>
  60.     <xsd:element name="state" type="xsd:string"/>
  61.     <xsd:element name="last_name" type="xsd:string"/>
  62.     
  63. </xsd:schema>
  64.  
  65. <!--This file was created using XMLwriter v2.0 Beta 2.
  66.     Copyright Wattle Software 2002. All rights reserved.
  67.     http://XMLwriter.net/-->
  68.